export interface userInfoType {
    username: string,
    nickname: string
}
export const getUserInfo = () => {
    return localStorage.getItem('userInfo') || ''
}

export const setUserInfo = (value: string) => {
    return localStorage.setItem('userInfo', value)
}
export const removeInfo = () => {
    return localStorage.removeItem('userInfo')
}
export const getToken = () => {
    return localStorage.getItem('userInfo') || ''
}

export const setToken = (value: string) => {
    return localStorage.setItem('token', value)
}
export const removeToken = () => {
    return localStorage.removeItem('token')
}